package com.net.xpay.core.dao;

import com.net.xpay.core.domain.AlipayUser;
import com.net.xpay.core.model.AlipayUserSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.VersionedMapper;
import com.net.common.annotation.DataShard;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataShard("")
@Repository
public interface AlipayUserMapper extends VersionedMapper<Long, AlipayUser> {
    List<AlipayUser> list(@Param("searchModel") AlipayUserSearchModel searchModel);

    long searchCount(@Param("searchModel") AlipayUserSearchModel searchModel);

    List<AlipayUser> search(@Param("searchModel") AlipayUserSearchModel searchModel, @Param("page") Page page);
}
